package com.ivanceras.shared.db;

import java.io.Serializable;



public class Join implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7831613344862076932L;
	public static String LEFT = "LEFT";
	public static String RIGHT = "RIGHT";
	
	private String joinType = LEFT; //default join type
	
	private IModelDef firstModel;
	private IModelDef foreignModel;
	
	public Join(){
		
	}
	
	public Join(IModelDef firstModel, IModelDef foreignModel, String joinType){
		this.firstModel = firstModel;
		this.foreignModel = foreignModel;
		this.joinType = joinType;
	}
	
	public IModelDef getFirstModel(){
		return this.firstModel;
	}
	
	public IModelDef getForeignModel(){
		return this.foreignModel;
	}
	
	public String getJoinType(){
		return this.joinType;
	}
	
	
}
